﻿<%@ Page Title="" Language="C#" MasterPageFile="~/template/twocolumntemplate.master" AutoEventWireup="true" CodeFile="List.aspx.cs" Inherits="DynamicData_CustomPages_CourseDays_List" %>



<asp:Content ID="Content4" ContentPlaceHolderID="MainContent" Runat="Server">
    <asp:Literal ID="CourseDayMessage" runat="server" />
    
    <asp:LinqDataSource ID="CourseDayDataSource" runat="server" 
         EnableUpdate="true"
         OnUpdating="CourseDayDataSource_Updating"
        ContextTypeName="UTSDAL.LINQSQL.Model.UTSDataContext" TableName="CourseDays"/>
    <rwg:BulkEditGridView ID="CourseDayList" runat="server" 
        AutoGenerateColumns="False" GridLines="None" CellSpacing="5" 
        SaveButtonID="CourseDaySaveButton" DataKeyNames="CourseDayId" 
        DataSourceID="CourseDayDataSource" EnableInsert="False" InsertRowCount="1" >
        <Columns>
            <asp:BoundField DataField="CourseDayName" ReadOnly="true" InsertVisible="false"/>
            <asp:DynamicField DataField="Enabled" InsertVisible="true"  ShowHeader="false"/>
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:CheckBox ID="CourseDayEnabled" runat="server" Checked='<%# Eval("Enabled") %>'/>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        
    </rwg:BulkEditGridView>
    
    
</asp:Content>

